package com.example.mybatis.demos.web;

import com.example.mybatis.domain.User;

import com.example.mybatis.utils.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;


@RestController
public class UserController {
    @PostMapping("/login")
    public R login() {
        Map<String, Object> map = new HashMap<>();
        map.put("username", "admin");
        map.put("password", "123456");
        System.out.println(map);
        System.out.println("login success");
        return R.ok(map);
    }
}
